// 引入 echarts 核心模块，核心模块提供了 echarts 使用必须要的接口。
import * as echarts from "echarts/core";
import {
  BarChart,
  // 引入地图图表，图表后缀都为 Chart
  MapChart,
  // 系列类型的定义后缀都为 SeriesOption
  MapSeriesOption,
  GaugeChart,
  GaugeSeriesOption,
  LineChart,
  GraphChart,
} from "echarts/charts";
import {
  GridComponent,
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  ToolboxComponent,
} from "echarts/components";
// 引入 SVGRenderer 渲染器，注意引入 CanvasRenderer 或者 SVGRenderer 是必须的一步
import { SVGRenderer } from "echarts/renderers";

echarts.use([
  MapChart,
  SVGRenderer,
  GridComponent,
  BarChart,
  GaugeChart,
  LineChart,
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  ToolboxComponent,
]);

export default echarts;
